package com.fxu.gen.cloud;

import com.fxu.gen.Base;
import com.fxu.gen.enums.TplEnum;
import com.fxu.tpl.entity.Table;

import java.io.File;

/**
 * Feign类的模板替换
 */
public final class Feign extends Base {
	public Feign(Table table, File destFile) {
		super(table, TplEnum.Feign, destFile);
	}
	
	@Override
    public String doReplace() {
		return super.doReplace().replace("\"" + this.tplProject + "-service\"", "\"" + this.destProject + "-service\"")
				.replace("\"" + this.tplProject, "\"" + this.thisModule);
	}
}
